package org.example.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.pojo.problem.Problem;
import org.example.pojo.problem.ProblemCase;

import java.util.List;

/**
 * (Problem)表数据库访问层
 *
 * @author makejava
 * @since 2023-11-12 15:16:21
 */
@Mapper
public interface ProblemDao extends BaseMapper<Problem> {

    @Select("SELECT * from problem_case where pid=#{problemId}")
    List<ProblemCase> getAllCase(String problemId);

}

